<style>
body {
  overflow: hidden;
  margin: 0px;
  padding: 0px;
  background: white;
}

div:first-child {
  margin-top: 0px;
}

div {
  cursor: pointer;
  text-align: center;
  padding: 1px 3px;
  font-family: sans-serif;
  font-size: 0.8em;
  width: 120px;
  margin-top: 1px;
  background: #cccccc;
}
div:hover {
  background: #aaaaaa;
}
</style>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.md5.js"></script>
<script>
$(document).ready(function(){
	
		var qaaUid = localStorage["qaaUid"];
    var qaaPwd = localStorage["qaaPwd"];
	
	  var qamUid = localStorage["qamUid"];
    var qamPwd = localStorage["qamPwd"];
	
		var cqaaUid = localStorage["cqaaUid"];
    var cqaaPwd = localStorage["cqaaPwd"];
	
		var cqamUid = localStorage["cqamUid"];
    var cqamPwd = localStorage["cqamPwd"];
	
		var taUid = localStorage["taUid"];
    var taPwd = localStorage["taPwd"];
	
		var tmUid = localStorage["tmUid"];
    var tmPwd = localStorage["tmPwd"];
		var requestString ='';
		
  $("#ta").click(function(){
		chrome.tabs.create(
		{
    'url': "https://training.tradecard.com/en/administration/login.jsp?reqID=11282006&nav=Homenav&userid="+taUid+"&password="+$.md5(taPwd),
    'selected': true
		});
	});
	
	$("#tm").click(function(){
		chrome.tabs.create(
		{
    'url': value="https://training.tradecard.com/en/trade/login.jsp?reqID=11282006&nav=Homenav&userid="+tmUid+"&password="+$.md5(tmPwd),
    'selected': true
		});
	});
	
		$("#qaa").click(function(){
		chrome.tabs.create(
		{
    'url': value="http://commerce.qa.tradecard.com/en/administration/login.jsp?reqID=11282006&nav=Homenav&userid="+qaaUid+"&password="+$.md5(qaaPwd),
    'selected': true
		});
	});
	
		$("#qam").click(function(){
		chrome.tabs.create(
		{
    'url': value="http://commerce.qa.tradecard.com/en/trade/login.jsp?reqID=11282006&nav=Homenav&userid="+qamUid+"&password="+$.md5(qamPwd),
    'selected': true
		});
	});
	
			$("#cqaa").click(function(){
		chrome.tabs.create(
		{
    'url': value="https://cqa.tradecard.com/en/administration/login.jsp?reqID=11282006&nav=Homenav&userid="+cqqaUid+"&password="+$.md5(cqaqPwd),
    'selected': true
		});
	});
	
			$("#cqam").click(function(){
		chrome.tabs.create(
		{
    'url': value="https://cqa.tradecard.com/en/trade/login.jsp?reqID=11282006&nav=Homenav&userid="+cqamUid+"&password="+$.md5(cqamPwd),
    'selected': true
		});
	});

});
</script>
<div id="ta">Training Admin</div>
<div id="tm">Training Member</div>
<div id="qaa">QA Admin</div>
<div id="qam">QA Member</div>
<div id="cqaa">CQA Admin</div>
<div id="cqam">CQA Member</div>
